package com.woniu.service.impl;

import com.woniu.entity.HouseType;
import com.woniu.mapper.HouseTypeMapper;
import com.woniu.service.HouseTypeService;
import com.woniu.uitls.ResponseUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class HouseTypeServiceImpl implements HouseTypeService {
    @Resource
    private HouseTypeMapper houseTypeMapper;

    @Override
    public ResponseUtil findAll() {
        List<HouseType> all = houseTypeMapper.findAll();
        return ResponseUtil.get(200,"成功",all);
    }
}
